<script lang="ts">
import { defineComponent } from '@vue/runtime-core';
import service from './utils/service'
export default defineComponent({
  name: 'App',
  async created() {
    const res = await service.get('todos/1')
    console.log(res.data)
  }
})
</script>
<template>
  <router-link to="/home">TS Demo</router-link>
  <router-link to="/JSX">JSX Demo</router-link>
  <router-link to="/mock">Mock Demo</router-link>
  <router-link to="/element3">Element3 Demo</router-link>
  <router-view></router-view>
</template>